/*Prepared Using STATA 19: September 16, 2023*/
/*Use STATA 19, create folders for Tables and Figures in main central director
install ritest, outreg2, codebookout, and tabout to run
net install ritest.pkg
net install outreg2.pkg
net install tabout.pkg
ssc install codebookout
net install estout*/

/*NOTES: Create subfiles to store \Figures & \Tables
Because of main log, individual logs within do file for recording randomization inference p-values and WestFall-Young p-values had to be commented out.
We recommend putting them back in for ease of replication.*/


cd "C:\Users\ejm5\Dropbox\RCT on corruption & productivity\Replication"

/*Experimental Set-Up - using raw restaurant endline survey data ("DUKE_RESTAURANT_ENDLINE_MERGED_GGSHEEAT_RAW2"). CODING DECISIONS INVOLVING IDENTIFIED DATA (location, sector, graduation, gender of owner) WERE REMOVED TO PROTECT CONFIDENTIALITY OF RESPONDENTS. FIRMS THAT TOOL COURSE BUT DID NOT CONSENT TO SURVEY WERE DROPPED FROM RAW DATA. FOR VERIFICATION PLEASE CHECK DIRECTLY WITH AUTHORS.*/
do "do\1_RCT_SetUp.do"

/*Experimental Analysis - using working data created in previous .do file ("DUKE_RESTAURANT_ENDLINE_MERGED_WORKING.dta")*/
do "do\2_RCT_Analysis.do"

/*World Enterprise Survey - using data WEBS data ("New_Comprehensive_August_30_2023.dta")*/
do "do\3_CN_Analysis.do"
